package com.example.exceldemo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.example.exceldemo.utils.poi.v2.PoiExcelUtilsV2;
import lombok.*;

/**
 * @Description
 * @Author xiaohuang
 * @Date 2024/7/12
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class PoiPerson {
    //导出的自定义注解
    @PoiExcelUtilsV2.ExcelExport(name = "序号")
    private Integer line;

    @PoiExcelUtilsV2.ExcelExport(name = "姓名")
    private String name;

    @PoiExcelUtilsV2.ExcelExport(name = "年龄")
    private Integer age;

    @PoiExcelUtilsV2.ExcelExport(name = "工作")
    private String job;

    @PoiExcelUtilsV2.ExcelExport(name = "工龄")
    private Integer workAge;
}
